package com.wty.design.structural.bridge;

/**
 * @Author wangtengyu
 * @Create 2018-09-19-16:59
 */
public class Test {

    public static void main(String[] args) {

        Account currentAccount=new CurrentAccount();
        Account regularAccount=new RegularAccount();

        Bank abcBank1=new ABCBank(currentAccount);
        Account account=abcBank1.openAccount();
        account.showAccountType();


        Bank abcBank2=new ABCBank(regularAccount);
        Account account2=abcBank2.openAccount();
        account2.showAccountType();

        Bank icbcBank1=new ICBCBank(currentAccount);
        Account account3=icbcBank1.openAccount();
        account3.showAccountType();


        Bank icbcBank2=new ICBCBank(regularAccount);
        Account account4=icbcBank2.openAccount();
        account4.showAccountType();





    }




}
